package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbSystemIp entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_system_ip", catalog = "imcdbserver")
public class TbSystemIp implements java.io.Serializable {

	// Fields

	private Integer ipId;
	private String ipMinarea;
	private String ipMaxarea;
	private String ipDescrible;
	private Integer linkId;

	// Constructors

	/** default constructor */
	public TbSystemIp() {
	}

	/** minimal constructor */
	public TbSystemIp(String ipMinarea, String ipMaxarea, Integer linkId) {
		this.ipMinarea = ipMinarea;
		this.ipMaxarea = ipMaxarea;
		this.linkId = linkId;
	}

	/** full constructor */
	public TbSystemIp(String ipMinarea, String ipMaxarea, String ipDescrible,
			Integer linkId) {
		this.ipMinarea = ipMinarea;
		this.ipMaxarea = ipMaxarea;
		this.ipDescrible = ipDescrible;
		this.linkId = linkId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "IP_ID", unique = true, nullable = false)
	public Integer getIpId() {
		return this.ipId;
	}

	public void setIpId(Integer ipId) {
		this.ipId = ipId;
	}

	@Column(name = "IP_MINAREA", nullable = false, length = 15)
	public String getIpMinarea() {
		return this.ipMinarea;
	}

	public void setIpMinarea(String ipMinarea) {
		this.ipMinarea = ipMinarea;
	}

	@Column(name = "IP_MAXAREA", nullable = false, length = 15)
	public String getIpMaxarea() {
		return this.ipMaxarea;
	}

	public void setIpMaxarea(String ipMaxarea) {
		this.ipMaxarea = ipMaxarea;
	}

	@Column(name = "IP_DESCRIBLE", length = 30)
	public String getIpDescrible() {
		return this.ipDescrible;
	}

	public void setIpDescrible(String ipDescrible) {
		this.ipDescrible = ipDescrible;
	}

	@Column(name = "link_id", nullable = false)
	public Integer getLinkId() {
		return this.linkId;
	}

	public void setLinkId(Integer linkId) {
		this.linkId = linkId;
	}

}